


<div>


<div id="InputForm">

</div>

<br/>
<br/>
<br/>
<div>
	<?php
		
		echo form_open('admin/admin/saveNewPriceClass');
		echo '<input type="hidden" name="txtCarRows" value="'. $carRows .'"/>';
		echo '<input type="hidden" name="txtPriceClassID" value="'. $cars .'"/>';		
		
		echo "<b>Prisklassens namn: <br/></b>" . form_input(array('id'=>'priceClassName','name'=>'priceClassName'));
		echo "<br/>";
		echo "<b>Förklaring: </b><br/>"  .form_textarea(array('id'=>'info','name'=>'info', 'rows'=> '3'));
		echo "<br/>";
		
		
		echo "<br/>";
		echo "<br/>";
	?>

</div>

<?php	
	$x = 0;
	foreach($cars as $row)
	{
		echo "<li>";
				 
				 
				 
				 
				 echo '<input type="hidden" name="' . $x . 'txtID" value="'. $row['ID'] .'"/>';
				 echo '<input type="hidden" name="txtClassID"/>';
				 
				 echo '<div id="bookings" align="center"  style="height:90px; width:500px; border-style:solid" >';
				 echo "<b>Modell:  </b>";	
				 echo $row['Modell'];
			 	 echo "  ";
				 
				 echo "<b>Info:  </b>";	
				 echo $row['Info'];
			 	 echo "   <br/>";
				 
				 echo "<b>Veckopris:</b>" . form_input(array('id'=>$x . 'weekprice','name'=>$x . 'weekprice'));
				 echo "<b>Dagspris:</b>" . form_input(array('id'=>$x . 'dayprice','name'=>$x . 'dayprice'));
				 echo "  <br/>";	
				 echo "<b>Timmpris:</b>" . form_input(array('id'=>$x . 'hourprice','name'=>$x . 'hourprice'));
				 echo "  <br/>";	
			 	 echo "  <br/>";	
		echo "</li>";
		
		$x++;
	}
	
	echo form_submit(array('id'=>'save'),'Spara');
	echo form_Close();
?>





</div>